//
//  UILabel+FZExtension.swift
//  FZSina_Swift
//
//  Created by 李忠 on 7/20/16.
//  Copyright © 2016 FZLZ. All rights reserved.
//

import UIKit

extension UILabel{
    convenience init(textColor: UIColor, textFont: CGFloat, width: CGFloat = 0) {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textFont)
        
        if width != 0 {
            self.preferredMaxLayoutWidth = width
            self.numberOfLines = 0
        }
    }
}
